<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>Document</title>
</head>
<body>
	 <script>
	 
	 var obj={
		 name:'zs',
		 age:18
	 }

	 var o={...obj}
	 console.log(o)
	 var o1={...obj,name:'老王'}  //解构赋值并且重新设置值
	 console.log(o1)




	   function fn(...args){
        console.log(args);  //数组：[1,2,3,4,5]
		
    }
    fn(1,2,3,4,5)


	let  arr=[...[1,2],...[3,4]];
	
	 </script>
</body>
</html>